package com.yolo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yolo.entity.dto.ErrandDto;
import com.yolo.mapper.ErrandDtoMapper;
import com.yolo.service.ErrandDtoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("errandDtoService")
public class ErrandDtoServiceImpl extends ServiceImpl<ErrandDtoMapper,ErrandDto> implements ErrandDtoService {
    @Autowired
    private ErrandDtoMapper errandDtoMapper;
    @Override
    public List<ErrandDto> selectAll() {
        List<ErrandDto> errandDtos = errandDtoMapper.selectAll();
        return errandDtos;
    }
}
